#ifndef _RING_BUFFER_
#define _RING_BUFFER_

#define UNCOVER 0
#define COVER 1
enum iscover_t
{
    uncover = 0,
    cover   = 1
};

/* public function */
int RingBufferInit(int buffer_num, int data_len, int iscover);
int RingBufferExit(int bd);
int SendToRingBuffer(int bd, void* data);
int GetFromRingBuffer(int bd, void *data);

#endif





